import axios from 'axios'

const request = axios.create({
  baseURL: 'http://realworld.api.fed.lagounews.com'
})

// 登录
export const signIn = data => {
  return request({
    method: 'post',
    url: '/api/users/login',
    data
  })
}
// 注册
export const signUp = data => {
  return request({
    method: 'post',
    url: '/api/users',
    data
  })
}